import { PASS_MY_LIST,MY_LIST_ACTIVE} from "../actions/actionsTypes"
export default function orderListReducer(state = {myListActive:0}, action) {
	switch (action.type) {
		case PASS_MY_LIST:
			return Object.assign({}, state, {orderList: action.data});
        case MY_LIST_ACTIVE:
            return Object.assign({}, state, {myListActive: action.data});
		default:
			return state;
	}
}
